$(function(){
    $( "#form_registro" ).submit(function( event ) {
        event.preventDefault();
        $.post(ARNY.baseUrl + "usuario/registro", {
            usu_nick: $('#usu_nick').val(), 
            usu_email: $('#usu_email').val(), 
            p_captcha: $('#p_captcha').val(),
            p_total: $('#p_total').val()
        }, function(data){
                if(data != ''){
                    $("#div_reg_errores_container").removeClass("hide");
                    $("#div_reg_errores").html(data);
                }else{
                    window.location.href = ARNY.baseUrl + "panel";
                }
            }
        );
    });
});